﻿using System;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace JinRiAdmin.WebHost.ViewModels
{
    public class ProductModel
    {
        public Guid Id { get; set; }
        [Required]
        [Display(Name = "产品标题")]
        public string Title { get; set; }

        public Guid CoverImageId { get; set; }

        public Guid BannerImageId { get; set; }

        [Required]
        [Display(Name = "介绍")]
        [AllowHtml]
        public string Introduce { get; set; }

        [Required]
        [AllowHtml]
        [Display(Name = "内容")]
        public string Content { get; set; }

        public DateTime CreateTime { get; set; }
        public DateTime UpdateTime { get; set; }
    }
}